'use strict';

angular.module('myApp.view1', ['ngRoute'])
.controller('View1Ctrl', ['$rootScope', '$scope', 'view1Service', function($rootScope, $scope, view1Service) {
	
	// $rootScope.rootScope = 'rootScope'
	$scope.test = view1Service.testName;

}])

.service('view1Service' ,[function(){
　　this.testName = '我是文字';
　　return this;
}]);